package com.lw.yygh.model.order;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * RefundInfo
 * </p>
 *
 * @author qy
 */
@Data
@TableName("refund_info")
public class RefundInfo  {
	
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long id;
	
	//对外业务编号
	@TableField("out_trade_no")
	private String outTradeNo;

	//订单编号
	@TableField("order_id")
	private Long orderId;

	//支付类型（微信 支付宝）
	@TableField("payment_type")
	private Integer paymentType;

	//交易编号
	@TableField("trade_no")
	private String tradeNo;

	//退款金额
	@TableField("total_amount")
	private BigDecimal totalAmount;

	//交易内容
	@TableField("subject")
	private String subject;

	//退款状态
	@TableField("refund_status")
	private Integer refundStatus;

	//回调时间
	@TableField("callback_time")
	private Date callbackTime;

	//回调信息
	@TableField("callback_content")
	private String callbackContent;

	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	private Integer isDeleted;

	@TableField(exist = false)
	private Map<String,Object> param=new HashMap<>();

}

